//
//  OTDR_LocalDataCell.m
//  OTDR
//
//  Created by Liu on 2024/5/19.
//

#import "OTDR_LocalDataCell.h"


@interface OTDR_LocalDataCell ()
@property(nonatomic ,strong)UILabel *detailInfoLabel;

@end
@implementation OTDR_LocalDataCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        self.backgroundColor = kWhiteColor;
        [self setupUI];
    }
    return self;
}
- (void)setupUI {
    self.detailInfoLabel = [ViewCreate createLabelFrame:CGRectMake(0, 0, SIZE(120), SIZE(35)) backgroundColor:ClearColor text:@"-" textColor:RGB51 textAlignment:Left font:FONT(16)];
    [self.contentView addSubview:self.detailInfoLabel];
    [self.detailInfoLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.mas_offset(-SIZE(20));
        make.centerY.mas_offset(0);
        make.left.mas_offset(SIZE(20));
        make.height.mas_offset(SIZE(40));
    }];
    
    UIView *lineView = [ViewCreate createLineFrame:CGRectMake(0, 0, SCREEN_WIDTH, 1) backgroundColor:RGB211];
    [self.contentView addSubview:lineView];
    [lineView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.bottom.mas_offset(0);
        make.height.mas_offset(1);
    }];
}
-(void)setFileName:(NSString *)fileName{
    _fileName = fileName;
    self.detailInfoLabel.text = _fileName;
}

@end
